package datatypes;

import java.math.BigDecimal;

public class Producto {

	/**
	 * precio relativo a la unidad de medida Uom
	 */
	private Double price;
	/**
	 * nombre del producto
	 */
	private String name;
	/**
	 * familia a la que pertence ejemplo: pan a la panaderia, tv a electronica,
	 * lavarropa electrodomesticos, etc.
	 */

	private Integer id;
	/**
	 * el stock
	 */
	private StockLine stock;

	private Integer code;
	/**
	 * Moneda en la que se cobra
	 */
	public Producto() {

	}

	public Producto(String name, Double price, StockLine stock,Integer code) {
		this.name = name;
		this.price = price;
		this.stock = stock;
		this.code=code;
	}


	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getName() {
		return name;
	}

	public void setName(String newName) {
		name = newName;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer newId) {
		id = newId;
	}

	public StockLine getStock() {
		return stock;
	}

	public void setStock(StockLine stock) {
		this.stock = stock;
	}
}
